'''
Created on Aug 12, 2010

@author: behrooz
'''
from amscms.dict.models import Language, Term
from django.contrib import admin
from django.contrib.admin.options import ModelAdmin


class LanguageAdmin(ModelAdmin):
    list_display = ('id', 'code', 'name')
    

class TermAdmin(ModelAdmin):
    list_display = ('id', 'enabled', 'reviewed', 'term', 'language', 'frequency')
    list_filter = ('enabled', 'reviewed', 'language')
    search_fields = ['term']
    
# Admin Registration
admin.site.register(Language, LanguageAdmin)
admin.site.register(Term, TermAdmin)
        
